package com.bwie.common.domain;

public enum GlobalStatusEnum {
    PHONE_IS_NULL(501,"手机号不能为空"),
    SYSTEM_IS_BUSY(500, "系统繁忙，请稍后再试"),
    USER_IS_NOT_EXIST(502, "用户不存在，请注册"),
    PHONE_IS_NOT_LEGITIMATE(503, "手机号不合法"),
    SEND_CODE_IS_FAILED(504, "发送验证码失败"),
    CODE_IS_ERROR(505, "验证码错误"),
    SHOP_NAME_IS_NULL(600, "店铺名称不能为空"),
    SHOP_DESC_IS_NULL(601, "店铺简介不能为空"),
    START_TIME_IS_NULL(602, "店铺合同开始时间不能为空"),
    END_TIME_IS_NULL(603, "店铺合同结束时间不能为空"),
    SHOP_NAME_IS_EXIST(604, "店铺名称已存在"),
    ROLE_IDS_IS_NULL(700, "该用户没有角色"),
    THIS_USER_DOES_NOT_HAVE_PERMISSION(701, "该用户没有权限，请联系管理员"),
    SHOP_ID_IS_NULL(702, "请选择要审核的店铺");



    private int code;
    private String label;

    GlobalStatusEnum(int code, String label) {
        this.code = code;
        this.label = label;
    }

    GlobalStatusEnum(String label) {
        this.label = label;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getLabel() {
        return label;
    }

    public void setLabel(String label) {
        this.label = label;
    }
}
